

/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2014 All Rights Reserved.
 */
package com.alipay.constants;

import com.orangelife.utils.ProConfig;



/**
 * 支付宝服务窗环境常量（demo中常量只是参考，需要修改成自己的常量值）
 * 
 * @author taixu.zqq
 * @version $Id: AlipayServiceConstants.java, v 0.1 2014年7月24日 下午4:33:49 taixu.zqq Exp $
 */
public class AlipayServiceEnvConstants {

 
    /**签名编码-视支付宝服务窗要求*/
    public static final String SIGN_CHARSET      = "GBK";

    /**字符编码-传递给支付宝的数据编码*/
    public static final String CHARSET           = "GBK";

    /**签名类型-视支付宝服务窗要求*/
    public static final String SIGN_TYPE         = "RSA";
    




    //开发者请使用openssl生成的密钥替换此处  请看文档：https://fuwu.alipay.com/platform/doc.htm#2-1接入指南
    //TODO !!!! 注：该私钥为测试账号私钥  开发者必须设置自己的私钥 , 否则会存在安全隐患 

  
    //http://tg-wei.oicp.net:12633/PropMngmComp/gateway.do
    
    
//    ProConfig.getProValues("alipayWebUrl")
    //TODO !!!! 注：该公钥为测试账号公钥  开发者必须设置自己的公钥 ,否则会存在安全隐患
    /**============测试==========================================================================*/
//    //测试
//    public static final String PRIVATE_KEY       = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBANYtcWFkcQLrrqg0I8mFTXHQ3yONBzVdzQc3gdLgGPWjd5KWAij36x+unpC3E+Jpm9D16ymCSoKPf99hZdGzGAcK5wd88UGYeokC1JPc81Exeqkekyi85Za9fSXQmJ/6onw9BbRIz8HsNZbjuBi2IcA3hRFDfs7PudT/JzNsMAXVAgMBAAECgYBERqBKR9au86rt/BEcgN47VjaMAr01if1+O3erXb0XMVFA7Ykqvj26D9SElZhFKR1+86ZPyTUvgcdl0oq+2rThlB/plJKZpyxT8xVvGfu3euQN0Gb5Yz/EN4sirxn22UGXYK1vhZjZNpKBUikVFY4DgNXOmgQYLJHxIRCJrHtjgQJBAPzofQA0ObqNJytKA9TZbYbd9aHOHliTvU9k5GFStHJp2cN044u8cs1U/Rlih8P1vtSpuYCRoaduKAn8lVKuoHkCQQDYy73ZFBnua7Oz15X4L6IzanQCOZ93E/ODkiBGF+vJZ4iEx6jaYZlVujlfKQWRIqF624u36g/KNjxV8trp2dE9AkAhfQ+ARWoXf7VeEBDt0FSmdSGfaVGvXPDGYI+1K2RlegqxzPqMeEmjUsuo3tknY5T/R/IeSipjpzx6Bg4nwqPRAkB5DlOlSo8sTeGbc69fVaHZ2gCLWYfM40wf1NHGsgbMgM5/bknAH62SbBkrJOnh4BeRVdSPztggTuakC6bn2+P1AkEA4rJfE4pI1eSEiHnzxCS9db7NX9607d+VF3UdueKd4qE1fQk/li7R+OZmVnJrcq3M/672x5cHPlvMFF0Hn4W1zQ==";
//   
//    public static final String PARTNER           = "2088911193438791";
//    /** 服务窗appId  */
//    //TODO !!!! 注：该appId必须设为开发者自己的服务窗id  这里只是个测试id
//    public static final String APP_ID            = "2015122201023525";
//    /**支付宝公钥-从支付宝服务窗获取*/
//    public static final String ALIPAY_PUBLIC_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDDI6d306Q8fIfCOaTXyiUeJHkrIvYISRcc73s3vF1ZT7XN8RNPwJxo8pWaJMmvyTn9N4HQ632qJBVHf8sxHi/fEsraprwCtzvzQETrNRwVxLO5jVmRGi60j8Ue1efIlzPXV9je9mkjzOmdssymZkh2QhUrCmZYI/FCEa3/cNMW0QIDAQAB";
//
//    public static final String PUBLIC_KEY        = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDWLXFhZHEC666oNCPJhU1x0N8jjQc1Xc0HN4HS4Bj1o3eSlgIo9+sfrp6QtxPiaZvQ9espgkqCj3/fYWXRsxgHCucHfPFBmHqJAtST3PNRMXqpHpMovOWWvX0l0Jif+qJ8PQW0SM/B7DWW47gYtiHAN4URQ37Oz7nU/yczbDAF1QIDAQAB";
//    /**============测试===========================================================================*/
//   
//    
    /**============正式==========================================================================*/
 
    public static final String PRIVATE_KEY       = ProConfig.getProValues("FW_PRIVATE_KEY");
    public static final String PARTNER           = ProConfig.getProValues("PARTNER");
    /** 服务窗appId  */
    //TODO !!!! 注：该appId必须设为开发者自己的服务窗id  这里只是个测试id
    public static final String APP_ID            = ProConfig.getProValues("FW_APP_ID");
    /**支付宝公钥-从支付宝服务窗获取*/
    public static final String ALIPAY_PUBLIC_KEY =ProConfig.getProValues("FW_ALIPAY_PUBLIC_KEY");
    public static final String PUBLIC_KEY        = ProConfig.getProValues("FW_PUBLIC_KEY"); 
    /**============正式===========================================================================*/
   
    
    
    
    /**支付宝网关*/
    public static final String ALIPAY_GATEWAY    = "https://openapi.alipay.com/gateway.do";

    /**授权访问令牌的授权类型*/
    public static final String GRANT_TYPE        = "authorization_code";
}